package com.shadow.baiqun.delegate.send.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.shadow.baiqun.R;
import com.shadow.baiqun.delegate.send.order.OrderEntity;

import java.util.List;

/**
 * @author zhangyu
 * @date 2018/7/26
 */

public class OrderAdapter extends BaseQuickAdapter<OrderEntity, BaseViewHolder> {
    public OrderAdapter(int layoutResId, @Nullable List<OrderEntity> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, OrderEntity item) {
        helper.setText(R.id.tv_part_code, item.getParts_num());
        helper.setText(R.id.tv_part_count, item.getTotalnum());
        helper.setText(R.id.tv_group, item.getBatch());
        helper.setText(R.id.tv_bag_count, item.getTags());
        helper.setText(R.id.tv_part_station, item.getDepotName());
    }
}
